$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    .bg {
      img {
        width: 100%;
        display: block;
        object-fit: cover;
      }
    }

    .text {
      position: absolute;
      left: 7vw;
      bottom: 15%;
      width: 86vw;

      .p1 {
        color: #FFF;
        font-size: $fontSize_54;
        font-weight: 700;
      }

      .t2 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 0.5vw;

        p {
          color: rgba(255, 255, 255, .53);
          font-size: $fontSize_14;
        }

        .icons {
          display: flex;
          align-items: center;

          a {
            display: block;
            margin-left: 1vw;

            svg {
              display: block;
              width: 26/$f+vw;
            }
          }
        }
      }
    }
  }

  .main {
    background: #F6F6F6;
    padding: 3vw 0 1vw 0;
    .section1 {
      width: 60vw;
      padding: 4vw 4vw 6vw 4vw;
      border-radius: 50/$f+vw;
      background: #FFF;
      margin: 0 auto;
      .des{
        color: #333;
        font-size: $fontSize_32;
      }
      .html{
        color: #666;
        font-size: 20/$f+vw;
        line-height: 1.8;
        margin: 2vw 0;
      }
      .pager{
        display: flex;
        justify-content: space-between;
        a{
          color: #666;
          font-size: $fontSize_22;
          transition: all 600ms;
          &:hover{
            color:#000;
          }
        }
      }
    }

    .recommend{
      margin: 4vw 10vw 0 10vw;
      .t{
        color: #000;
        font-size: $fontSize_48;
        text-align: center;
      }
      .allNews{
        margin: 2vw 0 4vw 0;
        .swiper-container{
          width: 100%;
          a{
            display: block;
            .pic{
              overflow: hidden;
              img{
                width: 100%;
                display: block;
                object-fit: cover;
                transition: all 600ms;
              }
            }
            .p1{
              color: #363940;
              font-size: $fontSize_24;
              font-weight: 700;
              margin: 1.5vw 0 0.3vw 0;
              transition: all 600ms;
            }
            .time{
              color: #333;
              font-size: $fontSize_14;
            }
            .des{
              color: #363940;
              font-size: $fontSize_16;
              line-height: 1.4;
              margin-top: 1.2vw;
              word-break: break-all;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-box-orient: vertical;
              -webkit-line-clamp: 2;
              overflow: hidden;
            }
            &:hover{
              .pic{
                img{
                  transform: scale(1.05);
                }
              }
              .p1{
                color:#1B2170;
              }
            }
          }
        }
      }
      .links{
        display: flex;
        font-size: $fontSize_14;
        a{
          color: #999;
          transition: all 600ms;
          margin-right: 4px;
          &:hover{
            color: #1B2170;
          }
        }
        p{
          color: #1B2170;
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      .bg{
        img{
          height: 300px;
        }
      }
      .text{
        width: 90%;
        left: 5%;
        .p1{
          font-size: 18px;
        }
        .t2{
          margin-top: 15px;
          p{
            font-size: 14px;
          }
          .icons{
            a{
              margin-left: 15px;
              svg{
                width: 16px;
              }
            }
          }
        }
      }
    }
    .main{
      padding:20px 0 10px 0;
      .section1{
        width: 80%;
        padding: 20px 5%;
        .des{
          font-size: 18px;
        }
        .html{
          margin: 15px 0 30px 0;
          font-size: 16px;
        }
        .pager{
          a{
            font-size: 14px;
          }
        }
      }
      .recommend{
        margin: 30px 5% 0 5%;
        .t{
          font-size: 24px;
        }
        .allNews{
          margin: 20px 0 40px 0;
          .swiper-container{
            a{
              .p1{
                margin: 15px 0 10px 0;
                font-size: 18px;
              }
              .time{
                font-size: 14px;
              }
              .des{
                font-size: 14px;
              }
            }
          }
        }
        .links{
          font-size: 13px;
          margin-top: 50px;
        }
      }
    }
  }
}